from sklearn.ensemble import AdaBoostClassifier
# from sklearn.ensemble import AdaBoostRegressor
from sklearn.datasets import load_iris
iris = load_iris()
X = iris.data
y = iris.target
ABC = AdaBoostClassifier(n_estimators=10)
ABC.fit(X, y)
# 多棵树
print(ABC.estimators_)

print(ABC.feature_importances_)